Power switch circuit for non-volatile memory

ABSTRACT

A non-volatile memory includes a power switch circuit and a non-volatile cell array. The power switch circuit includes a first transistor, a second transistor and a current source. A first source/drain terminal and a gate terminal of the first transistor receive a first supply voltage and a second supply voltage, respectively. A second source/drain terminal and a body terminal of the first transistor are connected with a node z. A first source/drain terminal and a gate terminal of the second transistor receive the second supply voltage and the first supply voltage, respectively. A second source/drain terminal and a body terminal of the second transistor are connected with the node z. The current source is connected between a bias voltage and the node z. A power terminal of the non-volatile cell is connected with the node z for receiving an output signal.

This is a continuation application of co-pending U.S. application Ser. No. 15/397,043, filed Jan. 3, 2017, which claims the benefit of U.S. provisional application Ser. No. 62/280,683, filed Jan. 19, 2016, the disclosure of which is incorporated by reference herein in its entirety.

FIELD OF THE INVENTION

The present invention relates to a power switch circuit, and more particularly to a power switch circuit for a non-volatile memory.

BACKGROUND OF THE INVENTION

As is well known, a non-volatile memory is able to continuously retain data after the supplied power is interrupted. Consequently, the non-volatile memory is widely used in a variety of electronic products. Generally, the non-volatile memory comprises a non-volatile cell array. The memory array consists of plural non-volatile cells. In addition, each non-volatile cell has a floating gate transistor.

FIG. 1 schematically illustrates the architecture of a non-volatile memory. As shown in FIG. 1, the non-volatile memory comprises a non-volatile cell array 110 and a power switch circuit 120. The power switch circuit 120 is connected with the non-volatile cell array 110. The power switch circuit 120 receives plural supply voltages. In addition, the power switch circuit 120 provides a proper supply voltage (i.e., an output signal Vs) to the non-volatile cell array 110 in different operation modes.

For example, the power switch circuit 120 receives a first supply voltage and a second supply voltage. In an erase mode, the power switch circuit 120 provides the first supply voltage to the non-volatile cell array 110. In a program mode, the power switch circuit 120 provides the second supply voltage to the non-volatile cell array 110.

SUMMARY OF THE INVENTION

An embodiment of the present invention provides a non-volatile memory comprises a non-volatile cell and a power switch circuit. The power switch circuit includes a first transistor, a second transistor and a current source. A first source/drain terminal of the first transistor receives a first supply voltage. A second source/drain terminal of the first transistor is connected with a node z. A gate terminal of the first transistor receives a second supply voltage. A body terminal of the first transistor is connected with the node z. An output signal is outputted from the node z. A first source/drain terminal of the second transistor receives the second supply voltage. A second source/drain terminal of the second transistor is connected with the node z. A gate terminal of the second transistor receives the first supply voltage. A body terminal of the second transistor is connected with the node z. The current source is connected between a bias voltage and the node z. If the first supply voltage is lower than the second supply voltage, the first supply voltage is selected as the output signal. If the first supply voltage is higher than the second supply voltage, the second supply voltage is selected as the output signal. If the first supply voltage is equal to the second supply voltage, the bias voltage is selected as the output signal. A power terminal of the non-volatile cell array is connected with the node z for receiving the output signal.

Numerous objects, features and advantages of the present invention will be readily apparent upon a reading of the following detailed description of embodiments of the present invention when taken in conjunction with the accompanying drawings. However, the drawings employed herein are for the purpose of descriptions and should not be regarded as limiting.

BRIEF DESCRIPTION OF THE DRAWINGS

The above objects and advantages of the present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:

FIG. 1 (prior art) schematically illustrates the architecture of a non-volatile memory;

FIG. 2A is a schematic circuit diagram of an automatic selection circuit;

FIG. 2B is a truth table illustrating the voltage levels of associated signals of the automatic selection circuit of FIG. 2A;

FIG. 3A is a schematic circuit diagram illustrating a power switch circuit according to a first embodiment of the present invention;

FIG. 3B is a truth table illustrating the voltage levels of associated signals of the power switch circuit of FIG. 3A;

FIG. 4 is a schematic circuit diagram illustrating a power switch circuit according to a second embodiment of the present invention;

FIG. 5A is a schematic circuit diagram illustrating a power switch circuit according to a third embodiment of the present invention;

FIG. 5B is a truth table illustrating the voltage levels of associated signals of the power switch circuit of FIG. 5A;

FIG. 6A is a schematic circuit diagram illustrating a power switch circuit according to a fourth embodiment of the present invention;

FIG. 6B is a truth table illustrating the voltage levels of associated signals of the power switch circuit of FIG. 6A;

FIG. 7 is a schematic circuit diagram illustrating a power switch circuit according to a fifth embodiment of the present invention;

FIG. 8 is a schematic circuit diagram illustrating a power switch circuit according to a sixth embodiment of the present invention;

FIG. 9 is a schematic circuit diagram illustrating a power switch circuit according to a seventh embodiment of the present invention;

FIG. 10 is a schematic circuit diagram illustrating a power switch circuit according to an eighth embodiment of the present invention; and

FIG. 11 is a schematic circuit diagram illustrating a power switch circuit according to a ninth embodiment of the present invention.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

FIG. 2A is a schematic circuit diagram of an automatic selection circuit. As shown in FIG. 2A, the automatic selection circuit 10 comprises two n-type transistors ma and mb. A first source/drain terminal of the transistor ma is connected with a node x. A second source/drain terminal of the transistor ma is connected with a node z. A gate terminal of the transistor ma is connected with a node y. A body terminal of the transistor ma is connected with the node z. A first source/drain terminal of the transistor mb is connected with the node y. A second source/drain terminal of the transistor mb is connected with the node z. A gate terminal of the transistor mb is connected with the node x. A body terminal of the transistor mb is connected with the node z. The node x and the node y are two input terminals of the automatic selection circuit 10. Moreover, the node x and the node y receive the supply voltages Vp1 and Vp2, respectively. The node z is an output terminal of the automatic selection circuit 10. One of the two supply voltages Vp1 and Vp2 is selected as an output signal Vs and outputted from the node z.

In an embodiment, the magnitudes of the supply voltages Vp1 and Vp2 are lower than or equal to 0V. Between the two supply voltages Vp1 and Vp2, the supply voltage with the lower magnitude is automatically selected as the output signal Vs by the automatic selection circuit 10. In another embodiment, the magnitudes of the supply voltages Vp1 and Vp2 are higher than 0V. Similarly, between the two supply voltages Vp1 and Vp2, the supply voltage with the lower magnitude is automatically selected as the output signal Vs by the automatic selection circuit 10.

FIG. 2B is a truth table illustrating the voltage levels of associated signals of the automatic selection circuit of FIG. 2A. If the supply voltage Vp1 is 0V and the supply voltage Vp2 is −4V, the transistor mb is turned on and the transistor ma is turned off. Since the supply voltage Vp2 has the lower magnitude (i.e., −4V), the supply voltage Vp2 is selected as the output signal Vs. If the supply voltage Vp1 is −6V and the supply voltage Vp2 is −4V, the transistor ma is turned on and the transistor mb is turned off. Since the supply voltage Vp1 has the lower magnitude (i.e., −6V), the supply voltage Vp1 is selected as the output signal Vs.

As mentioned above, the supply voltage with the lower magnitude is automatically selected as the output signal Vs by the automatic selection circuit 10. Furthermore, the lower magnitude of the output signal Vs is used as the body terminal voltage of the transistors ma and mb. In this way, the body effects of the transistors ma and mb can be eliminated.

Moreover, if the magnitudes of the supply voltages Vp1 and Vp2 are identical or one of the two supply voltages is not provided, the output signal Vs may be 0V or in a floating state. Under this circumstance, the magnitude of the output signal Vs is equal to the result of subtracting Vtn from the supply voltage, wherein Vtn is a threshold voltage of the transistors ma and mb.

Please refer to FIG. 2B. If both of the supply voltages Vp1 and Vp2 are 0V, the magnitude of the output signal Vs is equal to 0-Vtn. If the supply voltage Vp1 is 0V and the supply voltage Vp2 is not provided (i.e., the node y2 is in a floating state), the magnitude of the output signal Vs is equal to 0-Vtn.

FIG. 3A is a schematic circuit diagram illustrating a power switch circuit according to a first embodiment of the present invention. As shown in FIG. 3A, the power switch circuit 300 comprises two automatic selection circuits 310, 320, a level shifter 330 and an n-type transistor mc. The circuitry of the automatic selection circuit 310 and the circuitry of the automatic selection circuit 320 are identical to the circuitry of the automatic selection circuit of FIG. 2A.

The automatic selection circuit 310 receives two supply voltages Vp1 and Vp2. In addition, the supply voltage with the lower magnitude is automatically selected as an output signal Vs by the automatic selection circuit 310. The same, the automatic selection circuit 320 receives the two supply voltages Vp1 and Vp2. In addition, the supply voltage with the lower magnitude is automatically selected as an output voltage Vx by the automatic selection circuit 320. The output voltage Vx is used as a voltage source of the level shifter 330.

The level shifter 330 receives a control signal EN_mc. According to the voltage source Vx and the control signal EN_mc, the level shifter 330 is capable of shifting down the control signal EN_mc to a shifted signal Sc. For example, if the control signal EN_mc is in a high logic level state (e.g., 3.3V), the voltage level of the shifted signal Sc from the level shifter 330 is maintained at 3.3V. Whereas, if the control signal EN_mc is in a low logic level state (e.g., 0V), the voltage level of the shifted signal Sc from the level shifter 330 is shifted to the voltage level of the voltage source Vx.

In an embodiment, the control signal EN_mc is in the low logic level state when the magnitudes of the supply voltages Vp1 and Vp2 are different, the control signal EN_mc is in the high logic level state when the magnitudes of the supply voltages Vp1 and Vp2 are identical, and the control signal EN_mc is in the high logic level state when one of the supply voltages Vp1 and Vp2 is in a floating state.

A first source/drain terminal of the transistor mc is connected with a bias voltage Vbias. A second source/drain terminal and a body terminal of the transistor mc are connected with an output terminal of the power switch circuit 300 (i.e., the node z). The gate terminal of the transistor mc receives the shifted signal Sc. In an embodiment, the bias voltage Vbias is one of the supply voltages Vp1 and Vp2.

FIG. 3B is a truth table illustrating the voltage levels of associated signals of the power switch circuit of FIG. 3A. If the supply voltage Vp1 is 0V and the supply voltage Vp2 is −4V, the control signal EN_mc is in the low logic level state (Lo=0V) and the voltage level of the shifted signal Sc is −4V. Meanwhile, the transistor mc is turned off. Since the transistor mb is turned on and the transistor ma is turned off, the supply voltage Vp2 having the lower magnitude (i.e., −4V) is selected as the output signal Vs.

If the supply voltage Vp1 is −6V and the supply voltage Vp2 is −4V, the control signal EN_mc is in the low logic level state (Lo=0V) and the voltage level of the shifted signal Sc is −6V. Meanwhile, the transistor mc is turned off. Since the transistor ma is turned on and the transistor mb is turned off, the supply voltage Vp1 having the lower magnitude (i.e., −6V) is selected as the output signal Vs.

If the supply voltages Vp1 and Vp2 are identical, both of the transistors ma and mb are turned off. Since the control signal EN_mc is in the high logic level state (Hi=3.3V) and the voltage level of the shifted signal Sc is 3.3V, the transistor mc is turned on. Under this circumstance, the bias voltage Vbias is selected as the output signal Vs.

If the supply voltage Vp2 is in the floating state, both of the transistors ma and mb are turned off. Since the control signal EN_mc is in the high logic level state (Hi=3.3V) and the voltage level of the shifted signal Sc is 3.3V, the transistor mc is turned on. Under this circumstance, the bias voltage Vbias is selected as the output signal Vs. Moreover, the bias voltage Vbias is equal to one of the two supply voltages Vp1 and Vp2.

From the above descriptions, the power switch circuit 300 of this embodiment is capable of selecting the lower supply voltage as the output signal Vs and preventing the output signal Vs from being in the floating state when the supply voltage Vp1 is equal to the supply voltage Vp2.

FIG. 4 is a schematic circuit diagram illustrating a power switch circuit according to a second embodiment of the present invention. In comparison with the power switch circuit 300 of FIG. 3A, the power switch circuit 400 further comprises a control circuit 410 for generating the control signal EN_mc.

As shown in FIG. 4, the control circuit 410 comprises transistors md, me, current sources 414, 416 and an AND gate 412. The current source 414 is connected between a voltage source Vdd and a node a. A first source/drain terminal and a body terminal of the transistor md receive the supply voltage Vp1. A second source/drain terminal of the transistor md is connected with the node a. A gate terminal of the transistor md receives the supply voltage Vp2. The current source 416 is connected between the voltage source Vdd and a node b. A first source/drain terminal and a body terminal of the transistor me receive the supply voltage Vp2. A second source/drain terminal of the transistor me is connected with the node b. A gate terminal of the transistor me receives the supply voltage Vp1. The two input terminals of the AND gate 412 are connected with the nodes a and b, respectively. The output terminal of the AND gate 412 generates the control signal EN_mc. In an embodiment, the voltage of the voltage source Vdd is 3.3V, and the bias voltage Vbias is equal to one of the two supply voltages Vp1 and Vp2.

If the magnitudes of the supply voltages Vp1 and Vp2 are different, one of the transistors md and me is turned on, and the other of the transistors md and me is turned off. For example, if the supply voltage Vp1 is 0V and the supply voltage Vp2 is −4V, the transistor me is turned on and the transistor md is turned off. Consequently, the node a is in the high logic level state, the node b is in the low logic level state, and the control signal EN_mc from the AND gate 412 is in the low logic level state.

If the supply voltages Vp1 and Vp2 are identical, both of the transistors md and me are turned off. For example, if the supply voltage Vp1 is 0V and the supply voltage Vp2 is 0V, both of the transistors md and me are turned off. Consequently, the node a and the node b are in the high logic level state, and the control signal EN_mc from the AND gate 412 is in the high logic level state.

If one of the supply voltages Vp1 and Vp2 is in the floating state, both of the transistors and and me are turned off. Consequently, the control signal EN_mc from the AND gate 412 is in the high logic level state.

The truth table of the power switch circuit 400 is similar to that of FIG. 3B, and is not redundantly described herein. From the above descriptions, the power switch circuit 400 of this embodiment is capable of selecting the lower supply voltage as the output signal Vs and preventing the output signal Vs from being in the floating state when the supply voltage Vp1 is equal to the supply voltage Vp2.

FIG. 5A is a schematic circuit diagram illustrating a power switch circuit according to a third embodiment of the present invention. As shown in FIG. 5A, the power switch circuit 500 comprises an automatic selection circuit 310 and a weak current source 510. The circuitry of the automatic selection circuit 310 is identical to the circuitry of the automatic selection circuit of FIG. 2A. The weak current source 510 is connected between a bias voltage Vbias and an output terminal of the automatic selection circuit 310 (or a node z). Similarly, the power switch circuit 500 of this embodiment is capable of preventing the output signal Vs from being in the floating state when the supply voltage Vp1 is equal to the supply voltage Vp2.

FIG. 5B is a truth table illustrating the voltage levels of associated signals of the power switch circuit of FIG. 5A. If the supply voltage Vp1 is 0V and the supply voltage Vp2 is −4V, the transistor mb is turned on and the transistor ma is turned off. Consequently, the supply voltage Vp2 having the lower magnitude (i.e., −4V) is selected as the output signal Vs.

If the supply voltage Vp1 is −6V and the supply voltage Vp2 is −4V, the transistor ma is turned on and the transistor mb is turned off. Consequently, the supply voltage Vp1 having the lower magnitude (i.e., −6V) is selected as the output signal Vs.

If the magnitudes of the supply voltages Vp1 and Vp2 are identical or one of the two supply voltages is not provided, both of the transistors ma and mb are turned off. Meanwhile, the weak current provided by the weak current source 510 charges the node z. Consequently, the voltage of the node z is maintained at the bias voltage Vbias, and the node z is not in the floating state. Moreover, the bias voltage Vbias is equal to one of the two supply voltages Vp1 and Vp2.

From the above descriptions, the power switch circuit 500 of this embodiment is capable of selecting the lower supply voltage as the output signal Vs and preventing the output signal Vs from being in the floating state when the supply voltage Vp1 is equal to the supply voltage Vp2.

FIG. 6A is a schematic circuit diagram illustrating a power switch circuit according to a fourth embodiment of the present invention. As shown in FIG. 6A, the power switch circuit 600 comprises two n-type transistors m1, m2, two level shifters 620, 630 and an automatic selection circuit 640. The power switch circuit 600 receives two control signals EN_m1 and EN_m2 and selectively provides a supply voltage Vp1 or a supply voltage Vp2 as an output signal Vs. The voltage levels of the control signal EN_m1 and EN_m2 in the high logic level state are 3.3V. The voltage levels of the control signal EN_m1 and EN_m2 in the low logic level state are 0V.

The automatic selection circuit 640 receives the two supply voltages Vp1 and Vp2. In addition, the supply voltage with the lower magnitude is automatically selected as an output voltage Vx by the automatic selection circuit 640. The output voltage Vx is used as a voltage source of the level shifters 620 and 630. The circuitry of the automatic selection circuit 640 is identical to the circuitry of the automatic selection circuit of FIG. 2A.

The level shifter 620 receives a control signal EN_m1. According to the voltage source Vx and the control signal EN_m1, the level shifter 620 is capable of shifting down the control signal EN_m1 to a shifted signal S1. For example, if the control signal EN_m1 is in the high logic level state (e.g., 3.3V), the voltage level of the shifted signal S1 from the level shifter 620 is maintained at 3.3V. Whereas, if the control signal EN_m1 is in the low logic level state (e.g., 0V), the voltage level of the shifted signal S1 from the level shifter 620 is shifted to the voltage level of the voltage source Vx.

The level shifter 630 receives a control signal EN_m2. According to the voltage source Vx and the control signal EN_m2, the level shifter 630 is capable of shifting down the control signal EN_m2 to a shifted signal S2. For example, if the control signal EN_m2 is in the high logic level state (e.g., 3.3V), the voltage level of the shifted signal S2 from the level shifter 630 is maintained at 3.3V. Whereas, if the control signal EN_m2 is in the low logic level state (e.g., 0V), the voltage level of the shifted signal S2 from the level shifter 630 is shifted to the voltage level of the voltage source Vx.

A first source/drain terminal of the transistor m1 receives the supply voltage Vp1. A second source/drain terminal of the transistor m1 is connected with a node w. A gate terminal of the transistor m1 receives the shifted signal S1. A first source/drain terminal of the transistor m2 receives the supply voltage Vp2. A second source/drain terminal of the transistor m2 is connected with the node w. A gate terminal of the transistor m2 receives the shifted signal S2. An output signal Vs is outputted from the node w. In an embodiment of the invention, the body terminals of both m1 and m2 are connected to the voltage source Vx.

In this embodiment, the magnitudes of the supply voltages Vp1 and Vp2 are lower than or equal to 0V. FIG. 6B is a truth table illustrating the voltage levels of associated signals of the power switch circuit of FIG. 6A. If the magnitude of the supply voltage Vp1 is lower than the magnitude of the supply voltage Vp2, the supply voltage Vp1 is automatically selected as the output voltage Vx by the automatic selection circuit 640. For example, if the supply voltage Vp1 is −4V and the supply voltage Vp2 is 0V, the output voltage Vx from the automatic selection circuit 640 is −4V. Moreover, according to different operation modes of the non-volatile cell array, such as an erase mode, the control signal EN_m1 is in the high logic level state (Hi=3.3V) and the control signal EN_m2 is in the low logic level state (Lo=0V), the shifted signal S1 is 3.3V and the shifted signal S2 is −4V. Consequently, the transistor m1 is turned on and the transistor m2 is turned off. Under this circumstance, the supply voltage Vp1 is selected as the output signal Vs by the power switch circuit 600. That is, the output signal Vs is equal to −4V.

On the other hand, if the non-volatile cell array is operated at another mode, such as a read mode, the control signal EN_m1 is in the low logic level state (Lo=0V) and the control signal EN_m2 is in the high logic level state (Hi=3.3V), the shifted signal S1 is −4V and the shifted signal S2 is 3.3V. Consequently, the transistor m1 is turned off and the transistor m2 is turned on. Under this circumstance, the supply voltage Vp2 is selected as the output signal Vs by the power switch circuit 600. That is, the output signal Vs is equal to 0V.

If the magnitude of the supply voltage Vp1 is higher than the magnitude of the supply voltage Vp2, the supply voltage Vp2 is automatically selected as the output voltage Vx by the automatic selection circuit 640. In some application, one of Vp1 and Vp2 is provided by internal pumping circuit, the other one is forced externally, for example, the supply voltage Vp1 is −4V and the supply voltage Vp2 is −6V, the output voltage Vx from the automatic selection circuit 640 is −6V. Moreover, if the control signal EN_m1 is in the high logic level state (Hi=3.3V) and the control signal EN_m2 is in the low logic level state (Lo=0V), the shifted signal S1 is 3.3V and the shifted signal S2 is −6V. Consequently, the transistor m1 is turned on and the transistor m2 is turned off. Under this circumstance, the supply voltage Vp1 is selected as the output signal Vs by the power switch circuit 600. That is, the output signal Vs is equal to −4V.

On the other hand, if the control signal EN_m1 is in the low logic level state (Lo=0V) and the control signal EN_m2 is in the high logic level state (Hi=3.3V), the shifted signal S1 is −6V and the shifted signal S2 is 3.3V. Consequently, the transistor m1 is turned off and the transistor m2 is turned on. Under this circumstance, the supply voltage Vp2 is selected as the output signal Vs by the power switch circuit 600. That is, the output signal Vs is equal to −6V.

FIG. 7 is a schematic circuit diagram illustrating a power switch circuit according to a fifth embodiment of the present invention. As shown in FIG. 7, the power switch circuit 650 comprises an n-type transistor m1, a level shifter 652 and an automatic selection circuit 654. The power switch circuit 650 receives a control signal EN_m1 and selectively provides a supply voltage Vp1 as an output signal Vs. The voltage level of the control signal EN_m1 in the high logic level state is 3.3V. The voltage level of the control signal EN_m1 in the low logic level state is 0V.

In this embodiment, the automatic selection circuit 654 receives the supply voltage Vp1 and the output signal Vs. Moreover, one of the supply voltage Vp1 and the output signal Vs with the lower magnitude is transmitted to a body terminal of the transistor m1 by the automatic selection circuit 654 and used as a body voltage Vx of the transistor m1. Furthermore, the output voltage Vx of the automatic selection circuit 654 is used as a voltage source of the level shifter 652. The circuitry of the automatic selection circuit 654 is identical to the circuitry of the automatic selection circuit of FIG. 2A.

In this embodiment, the automatic selection circuit 654 receives the supply voltage Vp1 and the output signal Vs. Moreover, one of the supply voltage Vp1 and the output signal Vs with the lower magnitude is transmitted to a body terminal of the transistor m1 by the automatic selection circuit 654 and used as a body voltage Vx of the transistor m1. Consequently, the body effect of the transistor m1 can be eliminated.

FIG. 8 is a schematic circuit diagram illustrating a power switch circuit according to a sixth embodiment of the present invention. In comparison with the power switch circuit 600 of FIG. 6A, the power switch circuit 700 of this embodiment further comprises two automatic selection circuits 710 and 720. The circuitry of the automatic selection circuit 710 and the circuitry of the automatic selection circuit 720 are identical to the circuitry of the automatic selection circuit of FIG. 2A. Hereinafter, only the operations of the automatic selection circuits 710 and 720 will be described.

In this embodiment, the automatic selection circuit 710 receives the supply voltage Vp1 and the output signal Vs. Moreover, one of the supply voltage Vp1 and the output signal Vs with the lower magnitude is transmitted to a body terminal of the transistor m1 by the automatic selection circuit 710 and used as a body voltage Vm1 b of the transistor m1. The automatic selection circuit 720 receives the supply voltage Vp2 and the output signal Vs. Moreover, one of the supply voltage Vp2 and the output signal Vs with the lower magnitude is transmitted to a body terminal of the transistor m2 by the automatic selection circuit 720 and used as a body voltage Vm2 b of the transistor m2. Consequently, the body effects of the transistors m1 and m2 can be eliminated.

The truth table of the power switch circuit 700 is similar to that of FIG. 6B, and is not redundantly described herein.

FIG. 9 is a schematic circuit diagram illustrating a power switch circuit according to a seventh embodiment of the present invention. In comparison with the power switch circuit 700 of FIG. 8, the power switch circuit 800 of this embodiment further comprises an n-type transistor m3 and a level shifter 810. The power switch circuit 800 of this embodiment is used for preventing the node w from being in the floating state when the control signals EN_m1 and EN_m2 are both in the low logic level state.

The level shifter 810 receives a control signal EN_m3. According to the voltage source Vx, the level shifter 810 is capable of shifting down the control signal EN_m3 to a shifted signal S3. For example, if the control signal EN_m3 is in the high logic level state (e.g., 3.3V), the voltage level of the shifted signal S3 from the level shifter 810 is maintain at 3.3V. Whereas, if the control signal EN_m3 is in the low logic level state (e.g., 0V), the voltage level of the shifted signal S3 from the level shifter 810 is shifted to the voltage level of the voltage source Vx.

A first source/drain terminal of the transistor m3 is connected with a bias voltage Vbias. A second source/drain terminal of the transistor m3 is connected with the node w. A gate terminal of the transistor m3 receives the shifted signal S3. A body terminal of the transistor m3 receives the output voltage Vx from the automatic selection circuit 640.

When the control signals EN_m1 and EN_m2 are in the low logic level state, the control signal EN_m3 is in the high logic level state. Consequently, when the control signals EN_m1 and EN_m2 are both in the low logic level state and the transistors m1 and m2 are both turned off, the transistor m3 is turned on in response to the shifted signal S3. Under this circumstance, the voltage of the node w is maintained at the bias voltage Vbias, and the node w is not in the floating state. Moreover, the bias voltage Vbias is equal to one of the two supply voltages Vp1 and Vp2.

FIG. 10 is a schematic circuit diagram illustrating a power switch circuit according to an eighth embodiment of the present invention. In comparison with the power switch circuit 800 of FIG. 9, the power switch circuit 900 of this embodiment further comprises a control circuit 910 for generating the control signal EN_m3.

As shown in FIG. 10, the control circuit 910 comprises transistors m4, m5, current sources 914, 916 and an AND gate 912. The current source 914 is connected between a voltage source Vdd and a node c. A first source/drain terminal and a body terminal of the transistor m4 receive the supply voltage Vp1. A second source/drain terminal of the transistor m4 is connected with the node c. A gate terminal of the transistor m4 receives the supply voltage Vp2. The current source 916 is connected between the voltage source Vdd and a node d. A first source/drain terminal and a body terminal of the transistor m5 receive the supply voltage Vp2. A second source/drain terminal of the transistor m5 is connected with the node d. A gate terminal of the transistor m5 receives the supply voltage Vp1. The two input terminals of the AND gate 912 are connected with the nodes c and d, respectively. The output terminal of the AND gate 912 generates the control signal EN_m3. In an embodiment, the voltage of the voltage source Vdd is 3.3V.

If the supply voltages Vp1 and Vp2 are identical and the control signals EN_m1 and EN_m2 are both in the low logic level state, both of the transistors m1 and m2 are turned off. For example, if the supply voltage Vp1 is 0V and the supply voltage Vp2 is 0V, both of the transistors m4 and m5 are turned off. Consequently, the node c and the node d are in the high logic level state, and the control signal EN_m3 from the AND gate 912 is in the high logic level state.

When the control signal EN_m3 is in the high logic level state, the transistor m3 is turned on in response to the shifted signal S3. Under this circumstance, the voltage of the node w is maintained at the bias voltage Vbias, and the node w is not in the floating state. Moreover, the bias voltage Vbias is equal to one of the two supply voltages Vp1 and Vp2.

FIG. 11 is a schematic circuit diagram illustrating a power switch circuit according to a ninth embodiment of the present invention. In comparison with the power switch circuit 700 of FIG. 8, the power switch circuit 950 of this embodiment further comprises a weak current source 952. The power switch circuit 950 of this embodiment is used for preventing the node w from being in the floating state when the control signals EN_m1 and EN_m2 are both in the low logic level state.

The weak current source 952 is connected between a bias voltage Vbias and the node w. When the control signals EN_m1 and EN_m2 are both in the low logic level state and the transistors m1 and m2 are turned off, the weak current provided by the weak current source 952 charges the node w. Consequently, the voltage of the node w is maintained at the bias voltage Vbias, and the node w is not in the floating state. Moreover, the bias voltage Vbias is equal to one of the two supply voltages Vp1 and Vp2.

From the above descriptions, the present invention provides a power switch circuit. In the first, second and third embodiments, the power switch circuit is capable of automatically selecting the supply voltage with the lower magnitude as the output signal and preventing the output signal from being in the floating state. In the fourth, fifth, sixth, seventh and eighth embodiments, the power switch circuit is capable of selecting one supply voltage as the output signal according to the control signal and preventing the output signal from being in the floating state.

Furthermore, those skilled in the art will readily observe that numerous modifications and alterations may be made while retaining the teachings of the invention. For example, the automatic selection circuit 710 and the circuitry of the automatic selection circuit 720 are not used in one of the sixth embodiment, the seventh embodiment and the eight embodiment.

While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures. 

What is claimed is:
 1. A non-volatile memory, comprising: a non-volatile cell array having a power terminal; and a power switch circuit, including: a first transistor, wherein a first source/drain terminal of the first transistor receives a first supply voltage, a second source/drain terminal of the first transistor is connected with a node z, a gate terminal of the first transistor receives a second supply voltage, a body terminal of the first transistor is connected with the node z, and an output signal is outputted from the node z; a second transistor, wherein a first source/drain terminal of the second transistor receives the second supply voltage, a second source/drain terminal of the second transistor is connected with the node z, a gate terminal of the second transistor receives the first supply voltage, and a body terminal of the second transistor is connected with the node z; and a current source connected between a bias voltage and the node z, wherein the power terminal of the non-volatile cell array is connected with the node z for receiving the output signal; and wherein if the first supply voltage is lower than the second supply voltage, the first supply voltage is selected as the output signal, wherein if the first supply voltage is higher than the second supply voltage, the second supply voltage is selected as the output signal, wherein if the first supply voltage is equal to the second supply voltage, the bias voltage is selected as the output signal.
 2. The non-volatile memory as claimed in claim 1, wherein the bias voltage is equal to the first supply voltage, or the bias voltage is equal to the second supply voltage.
 3. The non-volatile memory as claimed in claim 1, wherein the first transistor and the second transistor are n-type transistors, and the current source is a weak current source. 